//
//  LRXUserInfoView.m
//  路人侠
//
//  Created by zhangxulong on 4/1/16.
//  Copyright © 2016 zhangxulong. All rights reserved.
//

#import "LRXUserInfoView.h"

@implementation LRXUserInfoView

- (void)layoutSubviews:(NSString * )dec numberWith:(NSString *)number
{
    if (![number isEqual:[NSNull null]] && number) {
 
        
        

    }
    
    
    UILabel * decLabel = [[UILabel alloc]init];
    decLabel.text = [dec stringByAppendingString:@":"];
    decLabel.font = [UIFont systemFontOfSize:28 *  hScale];
    decLabel.frame = CGRectMake(0, 0, 0, 28 * hScale);
    [decLabel sizeToFit];
    decLabel.textAlignment = NSTextAlignmentCenter;
    decLabel.textColor = [UIColor whiteColor];
    
    
    UILabel * numLabel = [[UILabel alloc]init];
    numLabel.text = number;
    numLabel.font = [UIFont systemFontOfSize:28 *hScale];
    numLabel.frame = CGRectMake(CGRectGetMaxX(decLabel.frame) + 32 * wScale, 0,0, 28 * hScale);
    [numLabel sizeToFit];
    
    numLabel.textAlignment = NSTextAlignmentCenter;
    numLabel.textColor = [UIColor whiteColor];
    
    [self addSubview:numLabel];
    [self addSubview:decLabel];
}

@end
